package com.syni.mdd.yhd.common.all.dto.requestDto.coupon;

import com.syni.mdd.yhd.common.all.dto.requestDto.BaseReDto;
import com.syni.mdd.yhd.common.all.validationGroup.GroupUpdate;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @className CouponReDto
 * @description TOO
 * @Author cfx
 * @DATE 2019/8/7 9:33
 * @VERSION 1.0
 **/
@Data
public class CouponReDto extends BaseReDto {
    @NotNull(groups = {GroupUpdate.class})
    private Integer business_id;
    private Integer pay_type;
    private String pay_content;
    private String use_week;
    private String start_time;
    private String end_time;
    private String use_time;
    private Integer use_scope;
    private Integer holidays_use_status;
    private Integer is_share_other;
    private Integer use_num;
    private String prod_free_services;

    public void setBusiness_id(Integer business_id) {
        this.business_id = business_id;
        this.bmsBusinessId = business_id;
    }

    public void setPay_type(Integer pay_type) {
        this.pay_type = pay_type;
        this.payType = pay_type;
    }

    public void setPay_content(String pay_content) {
        this.pay_content = pay_content;
        this.payContent = pay_content;
    }

    public void setUse_week(String use_week) {
        this.use_week = use_week;
        this.useWeek = use_week;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
        this.startTime = start_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
        this.endTime = end_time;
    }

    public void setUse_time(String use_time) {
        this.use_time = use_time;
        this.useTime = use_time;
    }

    public void setUse_scope(Integer use_scope) {
        this.use_scope = use_scope;
        this.useScope = use_scope;
    }

    public void setHolidays_use_status(Integer holidays_use_status) {
        this.holidays_use_status = holidays_use_status;
        this.holidaysUseStatus = holidays_use_status;
    }

    public void setIs_share_other(Integer is_share_other) {
        this.is_share_other = is_share_other;
        this.isShareOther = is_share_other;
    }

    public void setUse_num(Integer use_num) {
        this.use_num = use_num;
        this.useNum = use_num;
    }

    public void setProd_free_services(String prod_free_services) {
        this.prod_free_services = prod_free_services;
        this.prodFreeServices = prod_free_services;
    }

    //兼容实体类
    private Integer bmsBusinessId;
    private Integer payType;
    private String payContent;
    private String useWeek;
    private String startTime;
    private String endTime;
    private String useTime;
    private Integer useScope;
    private Integer holidaysUseStatus;
    private Integer isShareOther;
    private Integer useNum;
    private String prodFreeServices;
}
